package com.reading.controller;

import com.github.pagehelper.PageInfo;
import com.reading.pojo.Recharge;
import com.reading.service.PayService;
import com.reading.vo.Rmed;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pay")
public class PayController {
    @Autowired
    private PayService payService;

    @RequestMapping("/paylist")
    public Rmed paylist(@RequestBody Recharge recharge,Integer pageNo,Integer pageSize){
        PageInfo<Recharge> pageInfo = payService.paylist(recharge,pageNo,pageSize);
        return Rmed.suceessData(pageInfo);
    }
}
